package myWork;

public class Test3 {
    public static void main(String[] args) {
        int sum = methodd(8);
        System.out.println(sum);
    }

    private static int methodd(int i) {
        if (i==2|i==1){
            return 1;
        }else {
            return methodd(i-1)+methodd(i-2);
        }
    }
}
